<!DOCTYPE html>
<html lang="en">
<head>
        <?php include_once VIEWS.'/inc/head.php'; ?>

</head>
<body>
 <div class="box"></div>

    <?php include_once VIEWS.'/inc/header.php'; ?>
    <!--头部导航-->
     <?php include_once VIEWS.'/inc/nav.php'; ?>
     <!--分隔-->
  <div class="wrap clear">
       

        <!--banner大图-->
    
        <div class="about clear">
            <div class="product">
                <div class="product_top">
                    <ul>
                    	<li>
                    		<a href="<?php echo  site_url("product/index"); ?>">
                    			<span>
                    				<img src="<?php echo static_file('mobile/img/po_03.jpg'); ?>" alt="" class="posa">
                    				<img src="<?php echo static_file('mobile/img/po2_03.jpg'); ?>" alt="" class="posa2">
                    			</span>
                    			<p>箱包</p>
                    		</a>
                    	</li>
                    	<li>
                    		<a href="<?php echo  site_url("product/index1"); ?>">
                    			<span>
                    				<img src="<?php echo static_file('mobile/img/po2_05.jpg'); ?>" alt="" class="posa">
                    				<img src="<?php echo static_file('mobile/img/po_05.jpg'); ?>" alt="" class="posa2">
                    			</span>
                    			<p>服饰</p>
                    		</a>
                    	</li>
                    	<li class="active">
                    		<a href="<?php echo  site_url("product/index2"); ?>">
                    			<span>
                    				<img src="<?php echo static_file('mobile/img/po_07.jpg'); ?>" alt="" class="posa">
                    				<img src="<?php echo static_file('mobile/img/po2_07.jpg'); ?>" alt="" class="posa2">
                    			</span>
                    			<p>生活/家居</p>
                    		</a>
                    	</li>
                    </ul>
                </div>
                
                <div class="product_cen">
                    <dl>
                    	<dt>选择品牌</dt>
                    	<?php if(!empty($nav)):?>
											<?php foreach($nav as $k=>$v):?>
                    	<dd class="<?php echo $nowId==$v['id']?'active':'';?>" ><a href="<?php echo site_url('product/index2/'.$v['id']); ?>"><?php echo $v['title']?></a></dd>
                    	<?php endforeach;?>
											<?php endif;?>
                    </dl>
                </div>
                
                <?php if(!empty($fenye['new_con'])):?>
                <div class="product_bot tanchus">
								<?php foreach($fenye['new_con'] as $k=>$v):?>
									<?php if($k%2==0):?>
                    <dl class="fl">
                    <?php else:?>
                    <dl class="fr">
                    <?php endif;?>
                    	<dt><img src="<?php echo UPLOAD_URL.tag_photo($v['photo']); ?>" alt=""></dt>
                    	<dd>
                    		<span><?php echo $v['title'];?></span>
                    		<p><img src="<?php echo UPLOAD_URL.tag_photo($v['photo1']); ?>" alt=""></p>
                    	</dd>
                    </dl>
                <?php endforeach;?>
                </div>
                <div class="load"></div>
                <?php endif;?>
            </div>

        </div>
         
      <!--分隔-->

  </div>



<script>
     $(function(){
          var load="<?php echo site_url('product/inx2_ajax?id='.$nowId); ?>";
          var p = 1;
          $(window).scroll(function(){
               		if ($(document).height() - $(this).scrollTop() - $(this).height()<1){
               		$.ajax({
                        url:load,
                        data:{page:p+1},
                        cache: false,
                        dataType:'json',
                        success: function(data){
                            console.log(data.status);
                      	  	if(data.status=='yes'){
                                p=p+1;
                               }else{
                            	   $(window).off("scroll");
                            	   $(".load").hide();
                               }
                        	  console.log(data.list);
                        	  $(".product_bot").append(data.list);
                        }
                      });
                }
          });

       $(".tanchus dl").click( function () {
            $(".tanchus dl dd p").hide()
            $(this).find("dd p").show()
        })
     });
 </script>

 
    <!--商业区域-->



</body>
</html>

